﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 暴击伤害
    /// </summary>
    public class CriticalHitDamage : ItemsProperty, IAffecteCriticalHitDamage
    {
        public CriticalHitDamage() { }

        public CriticalHitDamage(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 暴击伤害值
        /// </summary>
        public Double Value { get; set; }

        public override string Des
        {
            get { return String.Format("+{0}% 暴击伤害", Value); }
        }

        #region IAffecteCriticalHitDamage 成员

        double IAffecteCriticalHitDamage.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
